package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 短信随机验证码对象 by_code_msg
 *
 * @author ruoyi
 * @date 2023-05-16
 */
public class ByCodeMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobile;

    /** 验证码 */
    @Excel(name = "验证码")
    private String code;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private String addtime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setAddtime(String addtime)
    {
        this.addtime = addtime;
    }

    public String getAddtime()
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("mobile", getMobile())
                .append("code", getCode())
                .append("addtime", getAddtime())
                .toString();
    }
}
